class CreateLibraryDepartments < ActiveRecord::Migration
  def self.up
    create_table :library_departments do |t|
      t.string :name
      t.string :commercial_adress
      t.string :postal_adress
      t.string :phone
      t.string :url
      t.boolean :shipping_cost
      t.float :discount
      t.integer :cboxp
      t.integer :cboxt
      t.integer :cboxc
      t.references :library
      t.references :city
      t.references :currency

      t.timestamps
    end
  end

  def self.down
    drop_table :library_departments
  end
end
